# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-frida-tools
_pkgname=frida_tools
pkgver=14.5.0
pkgrel=2
pkgdesc='Frida CLI tools.'
groups=('blackarch' 'blackarch-mobile' 'blackarch-binary' 'blackarch-reversing')
arch=('any')
url='https://pypi.org/project/frida-tools/#files'
license=('custom:unknown')
depends=('python' 'python-frida' 'python-colorama' 'python-prompt_toolkit'
         'python-pygments' 'python-websockets' 'libimobiledevice')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('ee9f32d185cfbed080a28901149cc84a93109e22a0c775a35ed77ae8bc5b9b11f21f3753c8f3d64fc8519f55938ad5f97f65a95b629f1a54bf9dcfe17da6f420')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {

  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

